<%@ include file="/taglibs.jsp"%>

<head>
    <title>
    <c:if test="${empty param.id}">
    	<fmt:message key="menu.form.add.title"/>
    </c:if>
    <c:if test="${not empty param.id}">
    	<fmt:message key="menu.form.edit.title"/>
    </c:if>
    </title>
</head>
<p><fmt:message key="detailForm.header"/></p>
  
<s:form name="mainMenuForm" action="save_menu" method="post" validate="true">
<s:hidden name="menu.id" value="%{menu.id}"/>
<s:hidden name="menu.position" value="%{menu.position}"/>
<tr>
	<td>
		<fmt:message key="menu.name"/>*
	</td>
	<td>
		<input name="menu.name" value="${menu.name}" maxlength="30" size="50">
	</td>
</tr>
<tr>
	<td>
		<fmt:message key="menu.formName"/>*
	</td>
	<td>
		<input name="menu.formName" value="${menu.formName}" maxlength="30" size="50">
	</td>
</tr>
	<s:select key="menu.mainmenu.title" list="mainMenus" name="fatherMenuId" value="fatherMenuId" listKey="id" listValue="name"/>
<tr>
	<td>
		<fmt:message key="menu.url"/>*
	</td>
	<td>
		<input name="menu.url" value="${menu.url}" maxlength="50" size="50">
	</td>
</tr>
	<s:checkbox key="menu.isActive" />
	<s:checkbox key="menu.isFather"/>

<%@ include file="/common_functions.jsp"%>
</s:form>
